package com.baitiaojun.video.mapper;

import com.baitiaojun.api.domain.video.VideoLike;
import org.apache.ibatis.annotations.Param;

public interface VideoLikeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VideoLike record);

    int insertSelective(VideoLike record);

    VideoLike selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(VideoLike record);

    int updateByPrimaryKey(VideoLike record);

    Integer isLike(@Param("videoId") Long videoId, @Param("userId") Long userId);

    int deleteVideoLike(@Param("videoId") Long videoId, @Param("userId") Long userId);

    int selectVideoLikeCount(Long videoId);

    Long selectUserIdByVideoId(Long videoId);
}